package uy.com.csi.gestpro.model.seguridad;

import java.io.Serializable;

import javax.persistence.*;

import uy.com.csi.gestpro.model.proyecto.GpPrycto;


/**
 * The persistent class for the gp_prycto_usrio database table.
 * 
 */
@Entity
@Table(name="gp_prycto_usrio", schema="seguridad")
@NamedQuery(name="GpPryctoUsrio.findAll", query="SELECT g FROM GpPryctoUsrio g")
public class GpPryctoUsrio implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private Integer id;
	
	@Column(name="nvel_accso")
	private Integer nvelAccso;
	
	@Column(name="reprte_usrio")
	private Boolean rprteUsrio;

	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="id_prycto")
	private GpPrycto gpPrycto;

	//bi-directional many-to-one association to GpUsrio
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="id_usrio")
	private GpUsrio gpUsrio;

	public GpPryctoUsrio() {
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	
	public GpUsrio getGpUsrio() {
		return this.gpUsrio;
	}

	public void setGpUsrio(GpUsrio gpUsrio) {
		this.gpUsrio = gpUsrio;
	}

	public GpPrycto getGpPrycto() {
		return gpPrycto;
	}

	public void setGpPrycto(GpPrycto gpPrycto) {
		this.gpPrycto = gpPrycto;
	}

	public Integer getNvelAccso() {
		return nvelAccso;
	}

	public void setNvelAccso(Integer nvelAccso) {
		this.nvelAccso = nvelAccso;
	}

	public Boolean getRprteUsrio() {
		return rprteUsrio;
	}

	public void setRprteUsrio(Boolean rprteUsrio) {
		this.rprteUsrio = rprteUsrio;
	}

}